import request from '@/utils/request'

// 查询用户证书列表
export function listUserCert(query) {
  return request({
    url: '/business/userCert/list',
    method: 'get',
    params: query
  })
}

// 查询用户证书详细
export function getUserCert(baseId) {
  return request({
    url: '/business/userCert/' + baseId,
    method: 'get'
  })
}

// 新增用户证书
export function addUserCert(data) {
  return request({
    url: '/business/userCert',
    method: 'post',
    data: data
  })
}

// 修改用户证书
export function updateUserCert(data) {
  return request({
    url: '/business/userCert',
    method: 'put',
    data: data
  })
}

// 删除用户证书
export function delUserCert(baseId) {
  return request({
    url: '/business/userCert/' + baseId,
    method: 'delete'
  })
}
